/*
 * ErrorOutputs.cpp
 *
 *  Created on: 27.04.2009
 *      Author: markus
 */

#include "ErrorOutputs.h"

void writeExceptionOutputF(const char* strFunctionName, const char* strText)
{
//	#if OGRE_PLATFORM == PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WIN32
//			MessageBoxA(NULL, strText, "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
//	#else
	fprintf(stderr, "-\n!!!!!!!!!!!!!!! An exception has occurred !!!!!!!!!!!!!!!\n%s:\n%s\n-\n",strFunctionName, strText);
//	#endif
}

void writeDebugOutputF(const char* strFunctionName, const char* strText/*, bool bHeader = true*/)
{
#ifdef _DEBUG
/*	if(bHeader)
	{
		fprintf(stderr, "################ EISENREICH DEBUG OUTPUT ################\n");
	}*/
	fprintf(stderr, "-\n%s said:\n%s\n-\n",strFunctionName, strText);
#endif

}